package com.bdqn.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bdqn.dao.UsersDao;
import com.bdqn.entity.Users;
import com.bdqn.service.UsersService;

@Service("usersService")
public class UsersServiceImpl implements UsersService {

	@Autowired
	private UsersDao usersDao;

	public Users login(String username, String pwd) {
		return usersDao.login(username, pwd);
	}

	public List<Users> getList(String username, int first, int maxResult) {
		return usersDao.getList(username, first, maxResult);
	}

	public int getCount(String username) {
		return usersDao.getCount(username);
	}

	public void add(Users users) {
		usersDao.add(users);
	}

	public Users getById(String username) {
		return usersDao.getById(username);
	}

	public void update(Users users) {
		usersDao.update(users);
	}

	public void del(String username) {
		usersDao.del(username);
	}

}
